package com.shidaimanong.controller;

import com.shidaimanong.entity.Result;
import com.shidaimanong.service.BlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/blog")
public class BlogRestController {

    @Autowired
    private BlogService blogService;

    @GetMapping(value = "delBlog/{id}")
    public String delBlog(@PathVariable int id) {
        blogService.del(id);
        return new Result().toString();
    }
}